import request from '@/utils/request'
//更新程序列表
export function listRobotPro(query) {
  return request({
    url: '/robot/updatepros/list',
    method: 'get',
    params: query
  })
}
//删除更新程序
export function delRobotPro(id) {
  return request({
    url: '/robot/updatepros/' + id,
    method: 'delete'
  })
}
//上传更新程序bin文件
export function sendFileBin(data) {
  return request({
    url: '/robot/updatepros/sendfilebin',
    method: 'post',
    data: data
  })
}
//更新机器人程序
export function updateRobotPro(data) {
  return request({
    url: '/robot/updatepros/updateprorobot',
    method: 'post',
    data: data
  })
}
